<?php


namespace App\Transformers\Product;


use App\Models\ProductDescription;
use League\Fractal\TransformerAbstract;

class ProductDescriptionTransformer extends TransformerAbstract
{

    public function transform(ProductDescription $data)
    {
        return [
            'id' => $data->id,
            'product_id' => $data->product_id ?? '',
            'description' => $data->description ?? '',
        ];
    }



}
